<template>
  <view class="my-container">
    <!-- token为空展示登录页面 -->
    <my-login v-if="token == '' || token == null"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  import badgeMix from '@/mixins/tabbar-badge.js'
  import {
    mapState
  } from 'vuex'
  export default {
    mixins: [badgeMix],
    computed: {
      // 从m_user模板中导入登录要用的token字符串
      ...mapState('m_user', ['token'])
    },
    data() {
      return {

      };
    },
    methods: {

    }
  }
</script>
<style lang="scss">
  page,
  .personal_view {
    height: 100%;
  }
</style>
